Systems and methods for failsafe firmware upgrades

ABSTRACT

Systems and methods for failsafe firmware upgrades in accordance with embodiments of the invention are disclosed. One embodiment includes a vehicle telematics device, including: a processor; and a firmware memory comprising a firmware image coupled to the processor, wherein the firmware image further comprise a first segment and a second segment; wherein a primary bootloader application located in the firmware image: verifies the integrity of the first segment; verifies the integrity of the second segment; selects a firmware image contained in the firmware memory using a failsafe process; and boots the vehicle telematics device using the selected firmware image.

CROSS-REFERENCE TO RELATED APPLICATIONS

The instant application claims priority to U.S. Provisional Patent Application No. 62/532,834, filed Jul. 14, 2017, the disclosure of which is hereby incorporated by reference in its entirety.

FIELD OF THE INVENTION

The present invention relates to programming devices and more specifically to updating the firmware of a device.

BACKGROUND

Telematics is the integrated use of telecommunications and informatics. Telematics units are installed in vehicles to provide a variety of telematics functionality in the vehicle. This functionality includes, but is not limited to, emergency warning systems, navigation functionality, safety warnings, and automated driving assistance. Telematics units are also capable of recording data related to the operation of the vehicle and providing that information for analysis, whether in real-time or during a time when the vehicle is being serviced. This information can be used in a variety of applications, such as fleet tracking, shipment tracking, insurance calculations, and in vehicle management and service.

SUMMARY OF THE INVENTION

Systems and methods for failsafe firmware upgrades in accordance with embodiments of the invention are disclosed. One embodiment includes a vehicle telematics device, including: a processor; and a firmware memory coupled to the processor, wherein the firmware memory comprises: a primary bootloader application, and a firmware image comprising a first segment and a second segment; wherein the primary bootloader application is configured to: verify the integrity of the first segment; verify the integrity of the second segment; select a firmware image contained in the firmware memory by using a failsafe process; and boot the vehicle telematics device by using the selected firmware image.

In a further embodiment, the firmware memory further comprises a default image and a transferred image, wherein the primary bootloader application selects the firmware image to boot the vehicle telematics device when the first segment is invalid and the second segment is invalid, and wherein the transferred image stored within the firmware memory is independent of a partition location such that transferring a single image is sufficient without the need to transfer a plurality of images, thereby saving time and cost of transferring images.

In another embodiment, the primary bootloader application verifies the integrity of the first segment by using a checksum in a first image header.

In a still further embodiment, the primary bootloader application verifies the integrity of the second segment by using a checksum in a second image header.

In a still another embodiment, the primary bootloader application selects the first segment to boot the vehicle telematics device when the first segment is valid and the second segment is invalid.

In a yet further embodiment, the primary bootloader application selects the second segment to boot the vehicle telematics device when the second segment is valid and the first segment is invalid.

In yet another embodiment, the primary bootloader application: checks an image ID for the first segment; and—checks an image ID for the second segment.

In a further embodiment again, the image ID for the first segment is located in a first image header and the image ID for the image segment is located in a second image header.

In another embodiment again, the primary bootloader application selects the first segment to boot the vehicle telematics device when the first segment is valid, the second segment is valid, and the image ID for the first segment is equal to the image ID for the second firmware image segment.

In a further additional embodiment, the primary bootloader application selects the second segment to boot the vehicle telematics device when the first segment is valid, the second segment is valid, and the image ID for the second segment is greater than the image ID for the first segment.

In another embodiment again, the firmware memory is a flash memory.

In another additional embodiment, a method for firmware updates, the method including: running a primary bootloader application contained in a firmware image by using a vehicle telematics device, wherein the vehicle telematics device comprises a processor and a firmware memory coupled to the processor and the firmware image is contained in the firmware memory, the firmware image further comprising a first segment, and a second segment; verifying the integrity of the first segment by using the vehicle telematics device; verifying the integrity of the second segment by using the vehicle telematics device; selecting a firmware image contained in the firmware memory to boot by using a failsafe process; and booting the vehicle telematics device by using the selected firmware image.

In a still yet further embodiment, the firmware memory comprises a default image and a transferred image, the method further including: selecting the default firmware image to boot the vehicle telematics device when the first segment is invalid and the second firmware image segment is invalid, wherein the transferred image stored within the firmware memory is independent of a partition location such that transferring a single image is sufficient without the need to transfer a plurality of images, thereby saving time and cost of transferring images.

In still yet another embodiment, verifying of the integrity of the first firmware image segment comprises using a checksum in a first image header by using the vehicle telematics device.

In a still further embodiment again, verifying the integrity of the second segment comprises using a checksum in a second image header by using the vehicle telematics device.

In a still further additional embodiment, the method further including selecting the first segment to boot the vehicle telematics device when the first segment is valid and the second segment is invalid.

In still another additional embodiment, the method further including: checking an image ID for the first segment by using the vehicle telematics device; and checking an image ID for the second segment by using the vehicle telematics device.

In a yet further embodiment again, the image ID for the first segment is located in a first image header and the image ID for the second segment is located in a second image header.

A yet another embodiment again includes the method further including selecting the first segment to boot the vehicle telematics device when the first firmware image segment is valid, the second firmware image segment is valid, and the image ID for the first firmware image segment is equal to the image ID for the second firmware image segment.

Other objects, advantages and novel features, and further scope of applicability of the present invention will be set forth in part in the detailed description to follow, and in part will become apparent to those skilled in the art upon examination of the following, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

The description will be more fully understood with reference to the following figures, which are presented as exemplary embodiments of the invention and should not be construed as a complete recitation of the scope of the invention, wherein:

FIG. 1 is a conceptual illustration of a vehicle telematics system in accordance with an embodiment of the invention;

FIG. 2 is a conceptual illustration of a vehicle telematics device in accordance with an embodiment of the invention;

FIG. 3 is a conceptual illustration of firmware memory segments in accordance with an embodiment of the invention;

FIG. 4 is a conceptual illustration of firmware header image fields in accordance with an embodiment of the invention;

FIG. 5 is a flowchart illustrating a process for failsafe firmware upgrades in accordance with an embodiment of the invention; and

FIG. 6 is a flowchart illustrating a process for updating and storing a failsafe firmware image in firmware memory of a vehicle telematics device in accordance with an embodiment of the invention.

DETAILED DESCRIPTION

Turning now to the drawings, systems and methods for failsafe firmware updates in accordance with embodiments of the invention are disclosed. Many vehicles are equipped with a vehicle telematics device. Vehicle telematics devices can obtain and/or measure a variety of data regarding the conditions and/or location of the vehicle along with receiving and transmitting data to remote server systems. A variety of vehicle telematics devices can utilize firmware to control their internal operations. Firmware in a device can be upgraded for a variety of reasons including (but not limited to) fixing bugs and/or adding features to a vehicle telematics device and typically is upgraded by replacing the entire firmware image. These upgrades can be performed in a variety of ways including (but not limited to) physically replacing the memory containing a new firmware image in a vehicle telematics device and/or downloading a new firmware image to the device via wired and/or wireless connection. Updated firmware can be stored on a server and the same updated firmware image can be transmitted to many vehicle telematics devices. Firmware upgrades can present a particular challenge because interruptions occurring during the upgrade can leave many vehicle telematics devices non-functional. Failures in an upgrade can be caused by (but are not limited to) power failures and/or transmission network failures which can leave a firmware image partially updated.

In many embodiments, failsafe firmware updates can download a new firmware image to a vehicle telematics device in a way that leaves the device functional even in an event that causes the firmware update to fail. A firmware memory such as (but not limited to) flash memory can be divided into a variety of segments where each segment stores an individual firmware image. In several embodiments, firmware memory segments can include (but are not limited to) a factory default firmware image segment as well as one or more updated firmware image segments.

A factory default firmware image segment can be preinstalled on the vehicle telematics device and generally holds the primary bootloader. In many embodiments, the factory default firmware image segment is never changed for the life of the device. Factory default firmware can be utilized when updated firmware images in other segments are missing, invalid, and/or otherwise unusable. Firmware images can contain (but are not limited to) an image header, image contents, and/or a reversed space. The bootloader stored within the factory default firmware image segment can be utilized in various ways by the vehicle telematics device. The bootloader can check the validity of other image segments and identify the valid image segments. In some embodiments, the validity of a firmware image segment and/or its identification can be checked using the header within the firmware image. As discussed below, the bootloader will select a valid firmware image to load. In several embodiments, when more than one valid firmware image is available, the bootloader will select the firmware image to load such as (but not limited to) the most recent firmware image and/or a firmware image meeting any of a variety other requirements. Vehicle telematics devices utilizing failsafe firmware processes can load factory default firmware images even when updated firmware images are for some reason incompletely downloaded and/or damaged. This can prevent a device from becoming unusable from a failed firmware download. Additionally, in some embodiments, the bootloader can be used to determine where in firmware memory to store a newly downloaded firmware image. Rather than requiring the entire firmware to be rewritten as part of an update, many embodiments of the invention allow an updated firmware image to be stored in any partition (e.g. firmware segment) in the firmware memory. Utilizing an updated firmware image can be independent of the number of firmware image segments stored in the firmware memory. As an illustrative example, failsafe firmware updates can transfer one firmware image segment to update a portion of the firmware which, in various embodiments, can save time and costs associated with transferring and/or writing the data as compared to the prior art which requires transmitting an entire firmware image. In several embodiments, multiple updated firmware image segments can be transferred to vehicle telematics devices and stored in various segments (or partitions) of firmware memory.

In a variety of embodiments, the operational state of a vehicle is utilized to determine if a vehicle telematics device should transmit and/or receive data and/or apply a firmware update. In a number of embodiments, vehicle ignition state (e.g. the operational status of the vehicle) is ascertained by monitoring the vehicle for signs indicative of the vehicle ignition state without directly connecting to the vehicle ignition line. Information indicative of vehicle ignition state (e.g. vehicle status data) can be ascertained by observing characteristics of the vehicle including but not limited to the power supplied by the vehicle, vehicle vibration, communications on an OBD II or other vehicle data bus line, and/or vehicle position information. In many embodiments, multiple different types of information are combined to ascertain the vehicle ignition state. Systems and methods for using an asset tracking device added to the vehicle after the manufacture of the vehicle without a direct connection to the vehicle ignition line that can be utilized to determine ignition state information in accordance with embodiments of the invention are described in U.S. Pat. No. 8,489,271, titled “Systems and Methods for Virtual Ignition Detection” and issued Jul. 16, 2013, the disclosure of which is hereby incorporated by reference in its entirety.

Systems and methods for failsafe firmware updates in accordance with embodiments of the invention are discussed below.

Vehicle Telematics Systems

Vehicle telematics systems in accordance with embodiments of the invention can transmit a variety of data between a remote server system and a vehicle telematics device, including firmware updates. A conceptual diagram of a vehicle telematics system in accordance with an embodiment of the invention is shown in FIG. 1. The vehicle telematics system 100 includes a vehicle telematics device 110 that can communicate with a vehicle data bus 112, and/or an input/output (I/O) interface 114 as appropriate to the requirements of specific applications of embodiments of the invention. In a variety of embodiments, the vehicle telematics device 110 communicates with the remote server system 130 via a network 120. In a variety of embodiments, the network 120 is the Internet. In many embodiments, the network 120 is any wired or wireless network, such as a cellular network, between the vehicle telematics device 110 and/or the mobile communications device and the remote server system 130. In a number of embodiments, the remote server system 130 implemented using a single server system. In several embodiments, the remote server system 130 is implemented using multiple server systems.

In a variety of embodiments, the vehicle telematics device 110 is installed in a vehicle having a vehicle data bus 112. In several embodiments, the vehicle telematics device 110 is connected to a vehicle diagnostic connector that provides access to the vehicle data bus 112. The vehicle telematics device 110 can obtain data from any of a variety of vehicle devices connected to the vehicle data bus 112 utilizing any of a variety of techniques as appropriate to the requirements of specific applications of embodiments of the invention. Vehicle devices can include, but are not limited to, engine sensors, electronic control unit (ECU) devices, alternator sensors, vibration sensors, voltage sensors, oxygen sensors, Global Positioning System (GPS) receivers, ignition devices, weight sensors, wireless network devices, and/or acceleration determination devices. Systems and methods for connecting to a vehicle data bus that can be utilized in accordance with embodiments of the invention are described in SAE J1978, titled “OBD II Scan Tool,” first published by SAE International of Troy, Mich. on Mar. 1, 1992 and last updated Apr. 30, 2002. Systems and methods for obtaining data from devices connected to a vehicle data bus are described in SAE J1979, titled “E/E Diagnostic Test Modes,” first published by SAE International on Dec. 1, 1991 and last updated Aug. 11, 2014. The disclosures of SAE J1978 and SAE J1979 are hereby incorporated by reference in their entirety. In a number of embodiments, the vehicle telematics device is connected directly, either wired or wirelessly, to one or more sensors within the vehicle and/or does not utilize the vehicle data bus 112.

The vehicle telematics device 110 can include any of a variety of sensors and/or devices, including those described above with respect to the vehicle data bus and any described in more detail below, to obtain data regarding the status of the vehicle. The vehicle telematics device 110 can also communicate with any of a variety of sensors and/or devices using the I/O interface 114. The I/O interface 114 can be any connection, including wired and wireless connections, as appropriate to the requirements of specific applications of embodiments of the invention. In several embodiments, the vehicle telematics device 110 is capable of executing scripts to read data and/or perform particular processes. These scripts can be pre-loaded on the device and/or obtained from the remote server system 130, vehicle data bus 112, and/or the I/O interface 114 as appropriate to the requirements of specific applications of embodiments of the invention. The vehicle telematics device 110 can be self-powered and/or connected into the electrical system of the vehicle in which the vehicle telematics device 110 is installed. In a variety of embodiments, the vehicle telematics device is powered via the vehicle data bus 112 and/or the I/O interface 114. In many embodiments, the vehicle telematics device 110 utilizes a Global Positioning System (GPS) receiver in order to determine the location, speed, and/or acceleration of the vehicle.

In a variety of embodiments, the vehicle telematics device 110 and/or remote server system 130 provides a user interface allowing for visualizing and interacting with the data transmitted and/or received between the systems. In several embodiments, the vehicle telematics device 110 and/or remote server system 130 provides an interface, such as an application programming interface (API) or web service that provides some or all of the data to third-party systems for further processing. Access to the interface can be open and/or secured using any of a variety of techniques, such as by using client authorization keys, as appropriate to the requirements of specific applications of the invention.

Although a specific architecture of a vehicle telematics system in accordance with embodiments of the invention are discussed above and illustrated in FIG. 1, a variety of architectures, including sensors and other devices and techniques not specifically described above, can be utilized in accordance with embodiments of the invention. Furthermore, the processes described herein can be performed using any combination the vehicle telematics device, mobile communications device, and/or the remote server systems as appropriate to the requirements of specific applications of embodiments of the invention.

Vehicle Telematics Devices

Vehicle telematics devices in accordance with embodiments of the invention can transmit and receive data. A conceptual illustration of a vehicle telematics device in accordance with an embodiment of the invention is shown in FIG. 2. The vehicle telematics device 200 includes a processor 210 in communication with memory 230 and/or firmware memory 250. The vehicle telematics device 200 can also include one or more communication interfaces 220 capable of sending and receiving data. In a number of embodiments, the communication interface 220 is in communication with the processor 210, the memory 230, and/or the sensor device(s) 240. In several embodiments, the memory 230 is any form of storage configured to store a variety of data, including, but not limited to, a vehicle telematics application 232, sensor data 234, and telematics data 236. In many embodiments, the vehicle telematics application 232, sensor data 234, and/or telematics data 236 are stored using an external server system and received by the vehicle telematics device 200 using the communications interface 220. Sensor devices 240 can include RPM sensors, voltage sensors, GPS receivers, noise sensors, vibration sensors, acceleration sensors, weight sensors, and any other device capable of measuring data regarding a vehicle as appropriate to the requirements of specific applications of embodiments of the invention. Sensor devices 240 can be included within the vehicle telematics device 200 and/or located external to the vehicle telematics device 200. The vehicle telematics 200 can communicate with external sensor devices using the communications interface 220, such as via a vehicle data bus, I/O interface (including serial interfaces), mobile communications device, and/or a network connection as appropriate to the requirements of specific applications of embodiments of the invention. In a variety of embodiments, a vehicle telematics device is connected to a diagnostic connector (e.g. an OBD II port) in a vehicle.

In various embodiments, the firmware memory 250 is any form of storage configured to store a variety of data including (but not limited to) firmware data 252 which can include one or more firmware image segments including a factory default firmware image segment as well as one or more optional failsafe firmware image segments. It should be readily apparent that firmware memory 250 is merely illustrative and firmware memory can be stored in a variety of locations within a vehicle telematics device including (but not limited to) as part of a single memory within the device, as a separate firmware memory, and/or firmware image segments divided between several memories. As an illustrative example, a divided firmware memory can include a factory default firmware image segment in one memory and one or more additional firmware image segments in one or more additional memories.

The processor 210 can be directed, by the vehicle telematics application 232, to perform a variety of failsafe update processes; a number of which that can be performed in accordance with embodiments of the invention are described in more detail below.

Although specific architectures for vehicle telematics devices in accordance with embodiments of the invention are conceptually illustrated in FIG. 2, any of a variety of architectures, including those that store data or applications on disk or some other form of storage and are loaded into memory at runtime, can also be utilized. Additionally, any of the data utilized in the system can be cached and transmitted once a network connection (such as a wireless network connection via the communications interface) becomes available. In a variety of embodiments, a memory includes circuitry such as, but not limited to, memory cells constructed using transistors, that are configured to store instructions. Similarly, a processor can include logic gates formed from transistors (or any other device) that dynamically perform actions based on the instructions stored in the memory. In several embodiments, the instructions are embodied in a configuration of logic gates within the processor to implement and/or perform actions described by the instructions. In this way, the systems and methods described herein can be performed utilizing both general-purpose computing hardware and by single-purpose devices.

Firmware Images

Firmware memory in accordance with embodiments of the invention can contain one or more firmware image segments. A conceptual illustration of firmware memory which can be utilized in a vehicle telematics device in accordance with a variety of embodiments of the invention is illustrated in FIG. 3. The firmware memory 300 includes a variety of firmware image segments. Firmware memory can include factory default firmware image segment 302 (e.g. firmware image and/or default image), first firmware image segment 304 (e.g. first segment), second firmware image segment 304 (e.g. second segment), and/or reserved segment 308. A factory default firmware image segment 302 can include a preset firmware image loaded onto the device that is not updated during the life of the vehicle telematics device. Vehicle telematics devices can be booted from a factory default firmware image even when one or more other firmware images are inoperable for any of a variety of circumstances, such as (but not limited to) by an interrupted image download. In several embodiments, a primary bootloader application can be contained within factory default firmware image. First firmware image segment 304 and/or second firmware image segment 306 can hold updated firmware images (e.g. transferred images) downloaded by vehicle telematics devices. Reserved segment 308 can be used to store (but is not limited to) vehicle telematics device hardware specific information and/or additional firmware image segments.

Firmware image segment 310 is an example of one organization of a firmware image segment, but it should be readily appreciated by one having ordinary skill in the art that any firmware image segment containing these areas and/or firmware image segments can be organized in different ways as appropriate to the requirements of several embodiments of the invention. Firmware image segment 310 can store (but is not limited to) reserved space 312, image header 314, and/or image contents 316. Reserved space 312 can store (but is not limited to) vehicle telematics device hardware specific information. Image header 314 can store a variety of fields including fields which can be utilized to (but is not limited to) identify the segment partition type, check the validity of the image stored within a partition, and/or identify a version of a firmware image. Image contents 316 can store firmware image data.

Turning now to FIG. 4, the structure of a firmware header image in accordance with an embodiment of the invention is illustrated. Image header fields 400 include a variety of fields which one having ordinary skill in the art can appreciate are merely exemplary. Fields can include (but are not limited to) partition type, partition size, image type, image base address, image size, image ID, header size, header version, firmware version, firmware build date, checksum (for reserved, image subsection and/or actual image), and/or header checksum.

In many embodiments, the partition type can identify if a firmware image segment is factory default, first, or second. Partition size can identify the size of a segment in number of bytes. In many embodiments, partition size can be larger than the actual image size. The image type can be used to identify whether the information in the segment holds the firmware image or another type of reserved images unrelated to firmware updates. Image base address generally is the start address of a segment which is unique to each of the factory default firmware image segment, the first firmware image segment, and the second firmware image segment. Image ID can be used to identify the most recently updated segment. In various embodiments, image ID can be a numerical value but it should be readily apparent to one having ordinary skill that any value which can determine a newer version from an older version can be utilized as appropriate.

Header size can hold the actual size of the header information in bytes. Header version can contain a variety of information and optionally can be reserved for future use. Firmware version can contain the revision of firmware in an image segment. In several embodiments, build date can contain the date and time when a firmware image was built. Checksum fields can contain the checksum of reserves spaces, the image contents of the firmware image, and/or the actual image. The header checksum can contain a checksum for the image header itself. In many embodiments, checksums can be computed using a variety of hashing algorithms, such as but not limited to MD5, SHA-0, SHA-1, SHA-2, SHA-3 RIPEMD, RIPEMD-128, RIPEMD-160, BLAKE, and BLAKE2. In an illustrative example, a checksum generated using a MD5 hashing algorithm can generate a 16 byte hash of the area in which the checksum in computed. In many embodiments, the integrity of a firmware image segment can be verified using the checksums of individual components in an image partition including (but not limited to) the header checksum.

Although specific partitions for firmware memory and firmware image header fields in accordance with embodiments of the invention are conceptually illustrated in FIGS. 3 and 4, any of a variety of firmware memory partition schemes to store multiple firmware images can be utilized as appropriate to various embodiments of the invention. Additionally, firmware memory can contain any number of firmware image segments as appropriate to the requirements of specific applications of embodiments of the invention.

Booting Vehicle Telematics Devices

Failsafe firmware processes can load firmware images stored in a vehicle telematics device. Turning now to FIG. 5, a process for selecting a firmware image to load from a partitioned firmware memory in accordance with an embodiment of the invention is shown. The process 500 includes running (502) a primary bootloader located in a factory default image segment (e.g. a firmware image and/or a default firmware image). The integrity of first firmware image segment (e.g. first segment) can be verified (504). In several embodiments, this verification can occur by checking a field in the first firmware image segment header. In several embodiments, verification of an image segment can be performed by using the checksums of individual components in an image partition including (but not limited to) the header checksum. In some embodiments, an image segment can be VALID or INVALID. It should be obvious to one having ordinary skill in the art that checking header values within a firmware image for verification are merely exemplary and any of a variety of verification approaches can be utilized as appropriate to the requirements of various embodiments of the invention. The integrity of second firmware image segment (e.g. second segment) can be verified (506). This verification can also be performed (but is not limited to) by checking a field in a firmware header file such as (but not limited to) a header checksum.

First and second firmware image segment image IDs can optionally be compared (508). This comparison can occur when both firmware images stored in first and second image segments are VALID, and can check to see which is the most recent firmware image. In many embodiment, image ID can be compared by checking values in a firmware header field such as an image ID. Image ID header filed can contain a numerical value but it should be readily apparent to one having ordinary skill in the art that this field value is not limited to a number and can contain any value which can differentiate firmware versions.

A firmware image segment is selected (510) to boot the vehicle telematics device. If both the first firmware image and the second firmware image are INVALID, then the factory default firmware image can be chosen. If the first firmware image segment contains a VALID firmware image, but the second firmware image segment is INVALID, the first firmware image can be chosen. When the opposite is true and the second firmware image segment contains a VALID image and the first firmware image segment is INVALID, the second firmware image segment can be chosen.

When both the first and second firmware image segments are VALID, the optionally compared image IDs can be used to determine which image segment to select. In some embodiments, selecting a greater (and/or equal) valued image ID can select the newer firmware image. As an illustrative example, if the first image ID is equal to the second image ID, the first firmware image segment can be selected. Furthermore, if the second image ID is greater than the first image ID, the second firmware image segment can be selected. The selected firmware version can be selected to boot (512) the vehicle telematics device. It should be readily apparent to one having ordinary skill that selecting to boot the vehicle telematics device using newer firmware images is merely illustrative and any of a variety of metrics can be utilized to select valid firmware images to boot the vehicle telematics device such as (but not limited to) selecting a particular firmware image on certain dates and/or selecting a particular firmware image based on particular hardware in the vehicle telematics device Furthermore, a vehicle telematics device can receive a message instructing the device to switch to a particular firmware image and reboot the device to boot that particular firmware image.

Additionally, the first firmware image and the second firmware image can have different structures. Firmware image structures can be tailored to specific applications and firmware images can be selected to boot based on their structure. In some embodiments, multiple updated firmware images for different segments can be downloaded to a vehicle telematics device at the same time. As an illustrative example, the same firmware image can be downloaded for more than one segment as a backup in case an image becomes damaged in some way.

Although a variety of failsafe firmware update processes in accordance with embodiments of the invention are illustrated in FIG. 5, any of a variety of processes for updating firmware in a vehicle telematics device can be utilized in accordance with embodiments of the invention.

Updating Firmware Images

Turing now to FIG. 6, a process for updating and storing a failsafe firmware image in firmware memory in accordance with an embodiment of the invention is shown. The process 600 includes optionally requesting (602) a firmware image segment. This request can be sent to a server where copies of firmware images are stored and/or a computing system which coordinates the synchronization of firmware image updates to vehicle telematics devices. A firmware image segment can be sent (604) to the vehicle telematics device.

The primary bootloader stored in the factory default firmware image segment (e.g. a firmware image and/or a default image) can run (606) to coordinate storing the received firmware image segment. The received firmware image segment can be stored (608) in the firmware memory of the vehicle telematics device. In many embodiments, the received firmware image segment can be stored in an empty memory location and/or replace a firmware image segment stored in a memory location. In various embodiments, a received firmware image segment can be stored in a memory location that is not currently selected by the primary bootloader application (e.g. a standby location). In some embodiments, the received firmware image segment contains metadata, such as in the firmware segment header data that identifies the firmware image segment in which the firmware should be stored.

Although a variety of failsafe firmware update and storage processes in accordance with embodiments of the invention re illustrated in FIG. 6, any of a variety of processes for updating and storing firmware in memory of a vehicle telematics device can be utilized in accordance with embodiments of the invention.

Although the present invention has been described in certain specific aspects, many additional modifications and variations would be apparent to those skilled in the art. In particular, any of the various processes described above can be performed in alternative sequences and/or in parallel (on the same or on different computing devices) in order to achieve similar results in a manner that is more appropriate to the requirements of a specific application. It is therefore to be understood that the present invention can be practiced otherwise than specifically described without departing from the scope and spirit of the present invention. Thus, embodiments of the present invention should be considered in all respects as illustrative and not restrictive. It will be evident to the person skilled in the art to freely combine several or all of the embodiments discussed here as deemed suitable for a specific application of the invention. Throughout this disclosure, terms like “advantageous”, “exemplary” or “preferred” indicate elements or dimensions which are particularly suitable (but not essential) to the invention or an embodiment thereof, and may be modified wherever deemed suitable by the skilled person, except where expressly required. Accordingly, the scope of the invention should be determined not by the embodiments illustrated, but by the appended claims and their equivalents. 

What is claimed is:
 1. A method for firmware updates, the method comprising: running a primary bootloader application contained in a firmware image by using a vehicle telematics device, wherein the vehicle telematics device comprises a processor and a firmware memory coupled to the processor and partitioned into a plurality of segments, each segment for storing an individual firmware image segment, and the firmware image is contained in the firmware memory, the firmware image further comprising a first firmware image segment, and a second firmware image segment; verifying the integrity of the first firmware image segment by using the vehicle telematics device; verifying the integrity of the second firmware image segment by using the vehicle telematics device; selecting a firmware image contained in the firmware memory to boot by using a failsafe process; and booting the vehicle telematics device by using the selected firmware image, wherein the firmware memory comprises a default firmware image segment and a transferred firmware image segment, the method further comprising selecting the default firmware image segment to boot the vehicle telematics device when the first firmware image segment is invalid and the second firmware image segment is invalid, wherein the transferred firmware image segment stored within the firmware memory is independent of a partition location such that transferring a single image is sufficient without the need to transfer a plurality of images; wherein the transferred firmware image segment comprises metadata that identifies a firmware image segment in which the transferred firmware image segment is to be stored; wherein the method further comprises: checking an image ID for the first firmware image segment by using the vehicle telematics device; and checking an image ID for the second firmware image segment by using the vehicle telematics device; selecting the first firmware image segment to boot the vehicle telematics device when the first firmware image segment and the second firmware image segment are valid, and the image ID for the first firmware image segment is greater than the image ID for the second firmware image segment.
 2. The method of claim 1, wherein verifying of the integrity of the first firmware image segment comprises using a checksum in a first firmware image header by using the vehicle telematics device.
 3. The method of claim 2, wherein the image ID for the first firmware image segment is located in a first firmware image header and the image ID for the second firmware image segment is located in a second firmware image header.
 4. The method of claim 2, the method further comprising selecting the first firmware image segment to boot the vehicle telematics device when the first firmware image segment is valid, the second firmware image segment is valid, and the image ID for the first firmware image segment is equal to the image ID for the second firmware image segment.
 5. The method of claim 1, wherein verifying the integrity of the second firmware image segment comprises using a checksum in a second firmware image header by using the vehicle telematics device.
 6. The method of claim 1, the method further comprising selecting the first firmware image segment to boot the vehicle telematics device when the first firmware image segment is valid and the second firmware image segment is invalid.
 7. The method of claim 1, the method further comprising selecting the second firmware image segment to boot the vehicle telematics device when the second firmware image segment is valid and the first firmware image segment is invalid.
 8. A vehicle telematics device, comprising: a processor; and a firmware memory coupled to the processor and partitioned into a plurality of segments, each segment for storing an individual firmware image segment, wherein the firmware memory comprises: a primary bootloader application, and a firmware image comprising a first firmware image segment and a second firmware image segment; wherein the primary bootloader application is configured to: verify the integrity of the first firmware image segment; verify the integrity of the second firmware image segment; select a firmware image contained in the firmware memory by using a failsafe process; and boot the vehicle telematics device by using the selected firmware image, wherein the firmware memory further comprises a default firmware image segment and a transferred firmware image segment, wherein the primary bootloader application selects the default firmware image segment to boot the vehicle telematics device when the first firmware image segment is invalid and the second firmware image segment is invalid, and wherein the transferred firmware image segment stored within the firmware memory is independent of a partition location such that transferring a single image is sufficient without the need to transfer a plurality of images; and wherein the transferred firmware image segment comprises metadata that identifies a firmware image segment in which the transferred firmware image segment is to be stored; wherein the primary bootloader application: checks an image ID for the first firmware image segment; and checks an image ID for the second firmware image segment; and wherein the primary bootloader application selects the second firmware image segment to boot the vehicle telematics device when the first firmware image segment and the second firmware image segment are valid, and the image ID for the second firmware image segment is greater than the image ID for the first firmware image segment.
 9. The vehicle telematics device of claim 8, wherein the primary bootloader application verifies the integrity of the first firmware image segment by using a checksum in a first firmware image header.
 10. The vehicle telematics device of claim 8, wherein the primary bootloader application verifies the integrity of the second firmware image segment by using a checksum in a second firmware image header.
 11. The vehicle telematics device of claim 8, wherein the primary bootloader application selects the first firmware image segment to boot the vehicle telematics device when the first firmware image segment is valid and the second firmware image segment is invalid.
 12. The vehicle telematics device of claim 8, wherein the primary bootloader application selects the second firmware image segment to boot the vehicle telematics device when the second firmware image segment is valid and the first firmware image segment is invalid.
 13. The vehicle telematics device of claim 8, wherein the image ID for the first firmware image segment is located in a first image header and the image ID for the second firmware image segment is located in a second image header.
 14. The vehicle telematics device of claim 8, wherein the primary bootloader application selects the first firmware image segment to boot the vehicle telematics device when the first firmware image segment is valid, the second firmware image segment is valid, and the image ID for the first firmware image segment is equal to the image ID for the second firmware image segment.
 15. The vehicle telematics device of claim 8, wherein the firmware memory is a flash memory. 